package com.supreme.cacheserver.config.props;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "cache-server")
public class CacheServerProps {

    public static final String redisCache = "redis";
    public static final String caffeineCache = "caffeine";

    @Value(value = redisCache)
    private String cacheType;

    private String mybatisEntityPackage;

    @Value(value = "/**/*.class")
    private String resourcePattern;

    @Value(value = "1")
    private Long cacheSeconds;
}
